package com.ctshk.rpc.system.req.crm.member;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 胡广
 * @since 2021/3/2
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CrmMemberQueryReq implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "查询类型格式不正确(1:手机号查询,2:证件号码查询)")
    @Range(min = 1,max = 2,message = "查询类型格式不正确(1:手机号查询,2:证件号码查询)")
    @ApiModelProperty("查询类型(1:手机号查询,2:证件号码查询)")
    private int queryType;
    @ApiModelProperty("手机号码/證件類別號碼")
    private String number;
    @ApiModelProperty("證件類別碼 (取自證件類別列表)")
    private String certificateType;

}
